package com.example.tms.bean;

import com.alibaba.fastjson.annotation.JSONField;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * 用户角色信息
 */
@IdClass(RoleViewId.class)
@Table(name = "user_role")
@Entity
public class UserRole {
    @Id
    private String yhid;
    @Id
    private String jsid;
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date urtime;

    public String getYhid() {
        return yhid;
    }

    public void setYhid(String yhid) {
        this.yhid = yhid;
    }

    public String getJsid() {
        return jsid;
    }

    public void setJsid(String jsid) {
        this.jsid = jsid;
    }

    public Date getUrtime() {
        return urtime;
    }

    public void setUrtime(Date urtime) {
        this.urtime = urtime;
    }
}
